package io.github.talelin.latticy.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.github.talelin.latticy.common.mybatis.Page;
import io.github.talelin.latticy.model.OrderDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author generator@TaleLin
 * @since 2021-06-20
 */
@Repository
public interface OrderMapper extends BaseMapper<OrderDO> {

    void changeOrderStatus(Integer status, Long id);

    IPage<OrderDO> searchOrders(Page<OrderDO> pager, String keyword, Date start, Date end);
}
